{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\liour\My Drive\Diversionary sanctions\FPA R&R\DiversionarySanctions.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}29 Jul 2024, 16:38:57

{com}. do "C:\Users\liour\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. clear all
{txt}
{com}. use "DiversionarySanctions_Main.dta", clear 
{txt}
{com}. 
. *** Main Models: Multinomial Logit (TIES)               
. mlogit diversion i.lbinonvio_campaign##c.loppseatshare i.lbivio_campaign##c.loppseatshare lgdpgr llninflation Flegelec Fexelec llngdppc ltradeopen llnmilex lvdem_polyarchy lagtheta_mean i.coldwar yrssince_divert yrssince_divertsq yrssince_divertcubic if year >1974 & year <2006, vce(cluster ccode)       

{txt}note: loppseatshare omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1828.5892}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1361.5075}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1223.4682}  
Iteration 3:{space 3}log pseudolikelihood = {res: -1179.285}  
Iteration 4:{space 3}log pseudolikelihood = {res:-1164.7797}  
Iteration 5:{space 3}log pseudolikelihood = {res:-1162.1278}  
Iteration 6:{space 3}log pseudolikelihood = {res:-1161.5705}  
Iteration 7:{space 3}log pseudolikelihood = {res:-1161.5576}  
Iteration 8:{space 3}log pseudolikelihood = {res:-1161.5576}  
{res}
{txt}Multinomial logistic regression{col 49}Number of obs{col 67}= {res}     2,985
{txt}{col 49}Wald chi2({res}36{txt}){col 67}= {res}    731.18
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-1161.5576{txt}{col 49}Pseudo R2{col 67}= {res}    0.3648

{txt}{ralign 100:(Std. Err. adjusted for {res:137} clusters in ccode)}
{hline 35}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 36}{c |}{col 48}    Robust
{col 1}                         diversion{col 36}{c |}      Coef.{col 48}   Std. Err.{col 60}      z{col 68}   P>|z|{col 76}     [95% Con{col 89}f. Interval]
{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0                                 {col 36}{txt}{c |}  (base outcome)
{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1                                  {txt}{c |}
{space 14}1.lbinonvio_campaign {c |}{col 36}{res}{space 2} -1.52771{col 48}{space 2} 1.063493{col 59}{space 1}   -1.44{col 68}{space 3}0.151{col 76}{space 4}-3.612117{col 89}{space 3} .5566975
{txt}{space 21}loppseatshare {c |}{col 36}{res}{space 2}-3.736708{col 48}{space 2} 1.138242{col 59}{space 1}   -3.28{col 68}{space 3}0.001{col 76}{space 4}-5.967622{col 89}{space 3}-1.505795
{txt}{space 34} {c |}
lbinonvio_campaign#c.loppseatshare {c |}
{space 32}1  {c |}{col 36}{res}{space 2} 8.146855{col 48}{space 2} 2.936951{col 59}{space 1}    2.77{col 68}{space 3}0.006{col 76}{space 4} 2.390536{col 89}{space 3} 13.90317
{txt}{space 34} {c |}
{space 17}1.lbivio_campaign {c |}{col 36}{res}{space 2}-1.363363{col 48}{space 2} .6974865{col 59}{space 1}   -1.95{col 68}{space 3}0.051{col 76}{space 4}-2.730412{col 89}{space 3} .0036854
{txt}{space 21}loppseatshare {c |}{col 36}{res}{space 2}        0{col 48}{txt}  (omitted)
{space 34} {c |}
{space 3}lbivio_campaign#c.loppseatshare {c |}
{space 32}1  {c |}{col 36}{res}{space 2} 2.194552{col 48}{space 2} 1.761485{col 59}{space 1}    1.25{col 68}{space 3}0.213{col 76}{space 4}-1.257896{col 89}{space 3}    5.647
{txt}{space 34} {c |}
{space 28}lgdpgr {c |}{col 36}{res}{space 2}-.0267262{col 48}{space 2} .0175532{col 59}{space 1}   -1.52{col 68}{space 3}0.128{col 76}{space 4}-.0611299{col 89}{space 3} .0076774
{txt}{space 22}llninflation {c |}{col 36}{res}{space 2} .1409755{col 48}{space 2}  .143842{col 59}{space 1}    0.98{col 68}{space 3}0.327{col 76}{space 4}-.1409496{col 89}{space 3} .4229007
{txt}{space 26}Flegelec {c |}{col 36}{res}{space 2}-.3066953{col 48}{space 2} .2198092{col 59}{space 1}   -1.40{col 68}{space 3}0.163{col 76}{space 4}-.7375135{col 89}{space 3} .1241228
{txt}{space 27}Fexelec {c |}{col 36}{res}{space 2} .0350407{col 48}{space 2} .3307714{col 59}{space 1}    0.11{col 68}{space 3}0.916{col 76}{space 4}-.6132594{col 89}{space 3} .6833408
{txt}{space 26}llngdppc {c |}{col 36}{res}{space 2}-.2059911{col 48}{space 2}  .226515{col 59}{space 1}   -0.91{col 68}{space 3}0.363{col 76}{space 4}-.6499523{col 89}{space 3} .2379701
{txt}{space 24}ltradeopen {c |}{col 36}{res}{space 2} .0043734{col 48}{space 2} .0038375{col 59}{space 1}    1.14{col 68}{space 3}0.254{col 76}{space 4} -.003148{col 89}{space 3} .0118948
{txt}{space 26}llnmilex {c |}{col 36}{res}{space 2} .3859217{col 48}{space 2} .1775827{col 59}{space 1}    2.17{col 68}{space 3}0.030{col 76}{space 4} .0378659{col 89}{space 3} .7339775
{txt}{space 19}lvdem_polyarchy {c |}{col 36}{res}{space 2} 2.983221{col 48}{space 2} 1.336524{col 59}{space 1}    2.23{col 68}{space 3}0.026{col 76}{space 4} .3636814{col 89}{space 3} 5.602761
{txt}{space 21}lagtheta_mean {c |}{col 36}{res}{space 2} -.082995{col 48}{space 2} .2279077{col 59}{space 1}   -0.36{col 68}{space 3}0.716{col 76}{space 4}-.5296859{col 89}{space 3} .3636959
{txt}{space 25}1.coldwar {c |}{col 36}{res}{space 2} .2992249{col 48}{space 2} .3946046{col 59}{space 1}    0.76{col 68}{space 3}0.448{col 76}{space 4}-.4741859{col 89}{space 3} 1.072636
{txt}{space 19}yrssince_divert {c |}{col 36}{res}{space 2}-.8503182{col 48}{space 2} .1518766{col 59}{space 1}   -5.60{col 68}{space 3}0.000{col 76}{space 4}-1.147991{col 89}{space 3}-.5526456
{txt}{space 17}yrssince_divertsq {c |}{col 36}{res}{space 2} .0450482{col 48}{space 2} .0095611{col 59}{space 1}    4.71{col 68}{space 3}0.000{col 76}{space 4} .0263087{col 89}{space 3} .0637876
{txt}{space 14}yrssince_divertcubic {c |}{col 36}{res}{space 2}-.0006804{col 48}{space 2} .0001886{col 59}{space 1}   -3.61{col 68}{space 3}0.000{col 76}{space 4}-.0010501{col 89}{space 3}-.0003106
{txt}{space 29}_cons {c |}{col 36}{res}{space 2}-5.745079{col 48}{space 2} 1.974762{col 59}{space 1}   -2.91{col 68}{space 3}0.004{col 76}{space 4}-9.615542{col 89}{space 3}-1.874617
{txt}{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}2                                  {txt}{c |}
{space 14}1.lbinonvio_campaign {c |}{col 36}{res}{space 2}-.0525789{col 48}{space 2} .4052015{col 59}{space 1}   -0.13{col 68}{space 3}0.897{col 76}{space 4}-.8467593{col 89}{space 3} .7416015
{txt}{space 21}loppseatshare {c |}{col 36}{res}{space 2} .4722067{col 48}{space 2} .6003178{col 59}{space 1}    0.79{col 68}{space 3}0.432{col 76}{space 4}-.7043945{col 89}{space 3} 1.648808
{txt}{space 34} {c |}
lbinonvio_campaign#c.loppseatshare {c |}
{space 32}1  {c |}{col 36}{res}{space 2}-1.759824{col 48}{space 2} 1.690747{col 59}{space 1}   -1.04{col 68}{space 3}0.298{col 76}{space 4}-5.073627{col 89}{space 3} 1.553978
{txt}{space 34} {c |}
{space 17}1.lbivio_campaign {c |}{col 36}{res}{space 2} .4512813{col 48}{space 2} .2933198{col 59}{space 1}    1.54{col 68}{space 3}0.124{col 76}{space 4} -.123615{col 89}{space 3} 1.026178
{txt}{space 21}loppseatshare {c |}{col 36}{res}{space 2}        0{col 48}{txt}  (omitted)
{space 34} {c |}
{space 3}lbivio_campaign#c.loppseatshare {c |}
{space 32}1  {c |}{col 36}{res}{space 2}-.5283895{col 48}{space 2}  .693848{col 59}{space 1}   -0.76{col 68}{space 3}0.446{col 76}{space 4}-1.888306{col 89}{space 3} .8315275
{txt}{space 34} {c |}
{space 28}lgdpgr {c |}{col 36}{res}{space 2}-.0127256{col 48}{space 2} .0148044{col 59}{space 1}   -0.86{col 68}{space 3}0.390{col 76}{space 4}-.0417417{col 89}{space 3} .0162906
{txt}{space 22}llninflation {c |}{col 36}{res}{space 2}-.1005608{col 48}{space 2} .1099873{col 59}{space 1}   -0.91{col 68}{space 3}0.361{col 76}{space 4} -.316132{col 89}{space 3} .1150104
{txt}{space 26}Flegelec {c |}{col 36}{res}{space 2} .0332558{col 48}{space 2} .1421556{col 59}{space 1}    0.23{col 68}{space 3}0.815{col 76}{space 4}-.2453641{col 89}{space 3} .3118757
{txt}{space 27}Fexelec {c |}{col 36}{res}{space 2} -.070263{col 48}{space 2} .2100212{col 59}{space 1}   -0.33{col 68}{space 3}0.738{col 76}{space 4} -.481897{col 89}{space 3} .3413711
{txt}{space 26}llngdppc {c |}{col 36}{res}{space 2} -.059311{col 48}{space 2} .1093654{col 59}{space 1}   -0.54{col 68}{space 3}0.588{col 76}{space 4}-.2736633{col 89}{space 3} .1550413
{txt}{space 24}ltradeopen {c |}{col 36}{res}{space 2} -.006075{col 48}{space 2} .0027596{col 59}{space 1}   -2.20{col 68}{space 3}0.028{col 76}{space 4}-.0114837{col 89}{space 3}-.0006663
{txt}{space 26}llnmilex {c |}{col 36}{res}{space 2} .3824237{col 48}{space 2} .0622091{col 59}{space 1}    6.15{col 68}{space 3}0.000{col 76}{space 4} .2604962{col 89}{space 3} .5043512
{txt}{space 19}lvdem_polyarchy {c |}{col 36}{res}{space 2}-.7139697{col 48}{space 2} .5381607{col 59}{space 1}   -1.33{col 68}{space 3}0.185{col 76}{space 4}-1.768745{col 89}{space 3} .3408059
{txt}{space 21}lagtheta_mean {c |}{col 36}{res}{space 2}-.1190329{col 48}{space 2} .1262787{col 59}{space 1}   -0.94{col 68}{space 3}0.346{col 76}{space 4}-.3665345{col 89}{space 3} .1284688
{txt}{space 25}1.coldwar {c |}{col 36}{res}{space 2}-.4295547{col 48}{space 2} .2115801{col 59}{space 1}   -2.03{col 68}{space 3}0.042{col 76}{space 4} -.844244{col 89}{space 3}-.0148654
{txt}{space 19}yrssince_divert {c |}{col 36}{res}{space 2}-.4368351{col 48}{space 2} .0582578{col 59}{space 1}   -7.50{col 68}{space 3}0.000{col 76}{space 4}-.5510182{col 89}{space 3}-.3226519
{txt}{space 17}yrssince_divertsq {c |}{col 36}{res}{space 2} .0186116{col 48}{space 2} .0033281{col 59}{space 1}    5.59{col 68}{space 3}0.000{col 76}{space 4} .0120886{col 89}{space 3} .0251347
{txt}{space 14}yrssince_divertcubic {c |}{col 36}{res}{space 2}-.0002225{col 48}{space 2}   .00005{col 59}{space 1}   -4.45{col 68}{space 3}0.000{col 76}{space 4}-.0003204{col 89}{space 3}-.0001245
{txt}{space 29}_cons {c |}{col 36}{res}{space 2}-4.200991{col 48}{space 2} .9225259{col 59}{space 1}   -4.55{col 68}{space 3}0.000{col 76}{space 4}-6.009109{col 89}{space 3}-2.392874
{txt}{hline 35}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. sum diversion lbinonvio_campaign lbivio_campaign loppseatshare lgdpgr llninflation Flegelec Fexelec llngdppc ltradeopen llnmilex lvdem_polyarchy lagtheta_mean coldwar yrssince_divert  if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}diversion {c |}{res}      2,985    .3353434    .7083666          0          2
{txt}lbinonvio_~n {c |}{res}      2,985    .0485762    .2150164          0          1
{txt}lbivio_cam~n {c |}{res}      2,985    .1772194    .3819183          0          1
{txt}loppseatsh~e {c |}{res}      2,985    .2779062    .2159185          0   .8916667
{txt}{space 6}lgdpgr {c |}{res}      2,985     3.65706    5.108049   -64.0471   35.62534
{txt}{hline 13}{c +}{hline 57}
llninflation {c |}{res}      2,985    3.358152    .5745175   .6894776   9.373118
{txt}{space 4}Flegelec {c |}{res}      2,985    .2244556    .4172932          0          1
{txt}{space 5}Fexelec {c |}{res}      2,985    .1025126     .303372          0          1
{txt}{space 4}llngdppc {c |}{res}      2,985    7.615255    1.498731   3.126556   11.24563
{txt}{space 2}ltradeopen {c |}{res}      2,985    72.65522    48.10036   .0209992   410.9368
{txt}{hline 13}{c +}{hline 57}
{space 4}llnmilex {c |}{res}      2,985    12.66603    3.022061          0    19.9378
{txt}lvdem_poly~y {c |}{res}      2,985    .5048372    .2864486       .013       .923
{txt}lagtheta_m~n {c |}{res}      2,985    .0581371    1.561153  -3.393351   5.000085
{txt}{space 5}coldwar {c |}{res}      2,985    .4077052    .4914902          0          1
{txt}yrssince_d~t {c |}{res}      2,985    17.29313    17.16337          0         55
{txt}
{com}. * check coorelation   
. cor loppseatshare lvdem_polyarchy if e(sample)==1 
{txt}(obs=2,985)

             {c |} loppse~e lvdem_~y
{hline 13}{c +}{hline 18}
loppseatsh~e {c |}{res}   1.0000
{txt}lvdem_poly~y {c |}{res}   0.6593   1.0000

{txt}
{com}. * 0.659
. 
. * Table 1
. outreg2 using Table1, word replace alpha(0.001, 0.01, 0.05, 0.1) symbol(***,**,*, †) bdec(3) addtext(Countries, 137)
{txt}{stata `"shellout using `"Table1.rtf"'"':Table1.rtf}
{browse `"C:\Users\liour\My Drive\Diversionary sanctions\FPA R&R"' :dir}{com} : {txt}{stata `"seeout using "Table1.txt""':seeout}

{com}. 
. * Figure 1
. sum loppseatshare if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
loppseatsh~e {c |}{res}      2,985    .2779062    .2159185          0   .8916667
{txt}
{com}. margins, dydx(lbinonvio_campaign) at(loppseatshare =(0(0.1)0.89)) predict(outcome(1))
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}     2,985
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(diversion==1), predict(outcome(1))}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.lbinonvio_campaign}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:loppseatsh~e}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:loppseatsh~e}{space 4}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:loppseatsh~e}{space 4}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:loppseatsh~e}{space 4}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:loppseatsh~e}{space 4}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:loppseatsh~e}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:loppseatsh~e}{space 4}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:loppseatsh~e}{space 4}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:loppseatsh~e}{space 4}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{res}{txt}{hline 22}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 23}{c |}{col 35} Delta-method
{col 23}{c |}      dy/dx{col 35}   Std. Err.{col 47}      z{col 55}   P>|z|{col 63}     [95% Con{col 76}f. Interval]
{hline 22}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.lbinonvio_campaign  {txt}{c |}
{space 18}_at {c |}
{space 19}1  {c |}{col 23}{res}{space 2}-.0693319{col 35}{space 2} .0387613{col 46}{space 1}   -1.79{col 55}{space 3}0.074{col 63}{space 4}-.1453027{col 76}{space 3}  .006639
{txt}{space 19}2  {c |}{col 23}{res}{space 2}-.0299736{col 35}{space 2} .0360727{col 46}{space 1}   -0.83{col 55}{space 3}0.406{col 63}{space 4}-.1006748{col 76}{space 3} .0407275
{txt}{space 19}3  {c |}{col 23}{res}{space 2} .0129831{col 35}{space 2} .0326941{col 46}{space 1}    0.40{col 55}{space 3}0.691{col 63}{space 4}-.0510962{col 76}{space 3} .0770623
{txt}{space 19}4  {c |}{col 23}{res}{space 2} .0596367{col 35}{space 2} .0330443{col 46}{space 1}    1.80{col 55}{space 3}0.071{col 63}{space 4} -.005129{col 76}{space 3} .1244023
{txt}{space 19}5  {c |}{col 23}{res}{space 2}  .109291{col 35}{space 2}  .044344{col 46}{space 1}    2.46{col 55}{space 3}0.014{col 63}{space 4} .0223783{col 76}{space 3} .1962037
{txt}{space 19}6  {c |}{col 23}{res}{space 2} .1608174{col 35}{space 2} .0656842{col 46}{space 1}    2.45{col 55}{space 3}0.014{col 63}{space 4} .0320788{col 76}{space 3}  .289556
{txt}{space 19}7  {c |}{col 23}{res}{space 2}  .213162{col 35}{space 2} .0925753{col 46}{space 1}    2.30{col 55}{space 3}0.021{col 63}{space 4} .0317178{col 76}{space 3} .3946061
{txt}{space 19}8  {c |}{col 23}{res}{space 2} .2656944{col 35}{space 2} .1228759{col 46}{space 1}    2.16{col 55}{space 3}0.031{col 63}{space 4} .0248621{col 76}{space 3} .5065267
{txt}{space 19}9  {c |}{col 23}{res}{space 2} .3183707{col 35}{space 2} .1564653{col 46}{space 1}    2.03{col 55}{space 3}0.042{col 63}{space 4} .0117044{col 76}{space 3}  .625037
{txt}{hline 22}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 87}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, level(95) recast(line) recastci(rline) ciopts(lpattern(dash) lcolor(black)) scheme(s2mono) yline(0, lpattern(line))  ///
> title("") plotopts(lcolor(black) plotregion(color(white)) graphregion(color(white)))  ///
> xtitle(Opposition Seat Share, size(medium)) ytitle(Change in Probability of Sanction Imposition, size(medium)) yscale(titlegap(+2)) xscale(titlegap(+2)) ///
> addplot(hist loppseatshare if e(sample)==1, percent fcolor(none) lcolor(gray) xlabel(0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9) ///
> yaxis(2) ytitle(Percent of Sample, axis(2)) yscale(axis(2) alt)) legend(off) 

{text}{p 2 6 2}Variables that uniquely identify margins: loppseatshare{p_end}
{p 0 4 2}
{txt}(note:  named style
line not found in class
linepattern,  default attributes used)
{p_end}
{res}{txt}
{com}. graph export "Figure 1.png", replace            
{txt}(file Figure 1.png written in PNG format)

{com}. 
{txt}end of do-file

{com}. do "C:\Users\liour\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. mlogit diversion i.lbinonvio_campaign##c.lvdem_polyarchy i.lbivio_campaign##c.lvdem_polyarchy loppseatshare lgdpgr llninflation Flegelec Fexelec llngdppc ltradeopen llnmilex lagtheta_mean i.coldwar yrssince_divert yrssince_divertsq yrssince_divertcubic if year >1974 & year <2006, vce(cluster ccode)     

{txt}note: lvdem_polyarchy omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1828.5892}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1351.2847}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1267.6882}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1220.2365}  
Iteration 4:{space 3}log pseudolikelihood = {res:-1177.1205}  
Iteration 5:{space 3}log pseudolikelihood = {res:-1168.5801}  
Iteration 6:{space 3}log pseudolikelihood = {res:-1166.3092}  
Iteration 7:{space 3}log pseudolikelihood = {res:-1165.7996}  
Iteration 8:{space 3}log pseudolikelihood = {res:-1165.7909}  
Iteration 9:{space 3}log pseudolikelihood = {res:-1165.7909}  
{res}
{txt}Multinomial logistic regression{col 49}Number of obs{col 67}= {res}     2,985
{txt}{col 49}Wald chi2({res}36{txt}){col 67}= {res}    967.61
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-1165.7909{txt}{col 49}Pseudo R2{col 67}= {res}    0.3625

{txt}{ralign 102:(Std. Err. adjusted for {res:137} clusters in ccode)}
{hline 37}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 38}{c |}{col 50}    Robust
{col 1}                           diversion{col 38}{c |}      Coef.{col 50}   Std. Err.{col 62}      z{col 70}   P>|z|{col 78}     [95% Con{col 91}f. Interval]
{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0                                   {col 38}{txt}{c |}  (base outcome)
{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1                                    {txt}{c |}
{space 16}1.lbinonvio_campaign {c |}{col 38}{res}{space 2}  -.90945{col 50}{space 2} 1.188411{col 61}{space 1}   -0.77{col 70}{space 3}0.444{col 78}{space 4}-3.238692{col 91}{space 3} 1.419792
{txt}{space 21}lvdem_polyarchy {c |}{col 38}{res}{space 2}  2.01873{col 50}{space 2} 1.388361{col 61}{space 1}    1.45{col 70}{space 3}0.146{col 78}{space 4}-.7024073{col 91}{space 3} 4.739867
{txt}{space 36} {c |}
lbinonvio_campaign#c.lvdem_polyarchy {c |}
{space 34}1  {c |}{col 38}{res}{space 2} 5.044264{col 50}{space 2} 2.838074{col 61}{space 1}    1.78{col 70}{space 3}0.076{col 78}{space 4}-.5182583{col 91}{space 3} 10.60679
{txt}{space 36} {c |}
{space 19}1.lbivio_campaign {c |}{col 38}{res}{space 2}-2.570604{col 50}{space 2} .9650337{col 61}{space 1}   -2.66{col 70}{space 3}0.008{col 78}{space 4}-4.462035{col 91}{space 3}-.6791722
{txt}{space 21}lvdem_polyarchy {c |}{col 38}{res}{space 2}        0{col 50}{txt}  (omitted)
{space 36} {c |}
{space 3}lbivio_campaign#c.lvdem_polyarchy {c |}
{space 34}1  {c |}{col 38}{res}{space 2}  3.17619{col 50}{space 2} 1.521464{col 61}{space 1}    2.09{col 70}{space 3}0.037{col 78}{space 4} .1941747{col 91}{space 3} 6.158204
{txt}{space 36} {c |}
{space 23}loppseatshare {c |}{col 38}{res}{space 2} -2.58263{col 50}{space 2}  1.03161{col 61}{space 1}   -2.50{col 70}{space 3}0.012{col 78}{space 4}-4.604549{col 91}{space 3}-.5607118
{txt}{space 30}lgdpgr {c |}{col 38}{res}{space 2}-.0252578{col 50}{space 2} .0196527{col 61}{space 1}   -1.29{col 70}{space 3}0.199{col 78}{space 4}-.0637763{col 91}{space 3} .0132607
{txt}{space 24}llninflation {c |}{col 38}{res}{space 2} .2201402{col 50}{space 2} .1384724{col 61}{space 1}    1.59{col 70}{space 3}0.112{col 78}{space 4}-.0512607{col 91}{space 3} .4915411
{txt}{space 28}Flegelec {c |}{col 38}{res}{space 2}-.2920379{col 50}{space 2} .2104214{col 61}{space 1}   -1.39{col 70}{space 3}0.165{col 78}{space 4}-.7044563{col 91}{space 3} .1203805
{txt}{space 29}Fexelec {c |}{col 38}{res}{space 2} .0830054{col 50}{space 2} .3217486{col 61}{space 1}    0.26{col 70}{space 3}0.796{col 78}{space 4}-.5476103{col 91}{space 3} .7136212
{txt}{space 28}llngdppc {c |}{col 38}{res}{space 2} -.130868{col 50}{space 2} .2388746{col 61}{space 1}   -0.55{col 70}{space 3}0.584{col 78}{space 4}-.5990537{col 91}{space 3} .3373177
{txt}{space 26}ltradeopen {c |}{col 38}{res}{space 2} .0038628{col 50}{space 2} .0041976{col 61}{space 1}    0.92{col 70}{space 3}0.357{col 78}{space 4}-.0043642{col 91}{space 3} .0120899
{txt}{space 28}llnmilex {c |}{col 38}{res}{space 2} .3558337{col 50}{space 2} .1872412{col 61}{space 1}    1.90{col 70}{space 3}0.057{col 78}{space 4}-.0111524{col 91}{space 3} .7228198
{txt}{space 23}lagtheta_mean {c |}{col 38}{res}{space 2}-.0935756{col 50}{space 2} .2173383{col 61}{space 1}   -0.43{col 70}{space 3}0.667{col 78}{space 4}-.5195508{col 91}{space 3} .3323997
{txt}{space 27}1.coldwar {c |}{col 38}{res}{space 2} .3328249{col 50}{space 2} .3995047{col 61}{space 1}    0.83{col 70}{space 3}0.405{col 78}{space 4}  -.45019{col 91}{space 3}  1.11584
{txt}{space 21}yrssince_divert {c |}{col 38}{res}{space 2}-.8628128{col 50}{space 2} .1520772{col 61}{space 1}   -5.67{col 70}{space 3}0.000{col 78}{space 4}-1.160879{col 91}{space 3} -.564747
{txt}{space 19}yrssince_divertsq {c |}{col 38}{res}{space 2} .0458342{col 50}{space 2} .0093985{col 61}{space 1}    4.88{col 70}{space 3}0.000{col 78}{space 4} .0274135{col 91}{space 3}  .064255
{txt}{space 16}yrssince_divertcubic {c |}{col 38}{res}{space 2}-.0006912{col 50}{space 2} .0001855{col 61}{space 1}   -3.73{col 70}{space 3}0.000{col 78}{space 4}-.0010548{col 91}{space 3}-.0003276
{txt}{space 31}_cons {c |}{col 38}{res}{space 2}-5.941355{col 50}{space 2}  1.97373{col 61}{space 1}   -3.01{col 70}{space 3}0.003{col 78}{space 4}-9.809794{col 91}{space 3}-2.072915
{txt}{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}2                                    {txt}{c |}
{space 16}1.lbinonvio_campaign {c |}{col 38}{res}{space 2}-.2653198{col 50}{space 2} .7285988{col 61}{space 1}   -0.36{col 70}{space 3}0.716{col 78}{space 4}-1.693347{col 91}{space 3} 1.162708
{txt}{space 21}lvdem_polyarchy {c |}{col 38}{res}{space 2}-.8200837{col 50}{space 2} .5258545{col 61}{space 1}   -1.56{col 70}{space 3}0.119{col 78}{space 4} -1.85074{col 91}{space 3} .2105722
{txt}{space 36} {c |}
lbinonvio_campaign#c.lvdem_polyarchy {c |}
{space 34}1  {c |}{col 38}{res}{space 2}-.4875118{col 50}{space 2} 2.149574{col 61}{space 1}   -0.23{col 70}{space 3}0.821{col 78}{space 4}  -4.7006{col 91}{space 3} 3.725577
{txt}{space 36} {c |}
{space 19}1.lbivio_campaign {c |}{col 38}{res}{space 2} .0736245{col 50}{space 2} .3325462{col 61}{space 1}    0.22{col 70}{space 3}0.825{col 78}{space 4}-.5781541{col 91}{space 3} .7254031
{txt}{space 21}lvdem_polyarchy {c |}{col 38}{res}{space 2}        0{col 50}{txt}  (omitted)
{space 36} {c |}
{space 3}lbivio_campaign#c.lvdem_polyarchy {c |}
{space 34}1  {c |}{col 38}{res}{space 2} .5722374{col 50}{space 2}  .559246{col 61}{space 1}    1.02{col 70}{space 3}0.306{col 78}{space 4}-.5238646{col 91}{space 3} 1.668339
{txt}{space 36} {c |}
{space 23}loppseatshare {c |}{col 38}{res}{space 2}  .163629{col 50}{space 2} .5132548{col 61}{space 1}    0.32{col 70}{space 3}0.750{col 78}{space 4}-.8423318{col 91}{space 3}  1.16959
{txt}{space 30}lgdpgr {c |}{col 38}{res}{space 2}-.0122763{col 50}{space 2} .0146307{col 61}{space 1}   -0.84{col 70}{space 3}0.401{col 78}{space 4}-.0409519{col 91}{space 3} .0163993
{txt}{space 24}llninflation {c |}{col 38}{res}{space 2}-.0948547{col 50}{space 2}  .108051{col 61}{space 1}   -0.88{col 70}{space 3}0.380{col 78}{space 4}-.3066307{col 91}{space 3} .1169214
{txt}{space 28}Flegelec {c |}{col 38}{res}{space 2} .0476332{col 50}{space 2} .1401181{col 61}{space 1}    0.34{col 70}{space 3}0.734{col 78}{space 4}-.2269932{col 91}{space 3} .3222595
{txt}{space 29}Fexelec {c |}{col 38}{res}{space 2}-.0721062{col 50}{space 2} .2074791{col 61}{space 1}   -0.35{col 70}{space 3}0.728{col 78}{space 4}-.4787578{col 91}{space 3} .3345454
{txt}{space 28}llngdppc {c |}{col 38}{res}{space 2} -.039721{col 50}{space 2} .1077668{col 61}{space 1}   -0.37{col 70}{space 3}0.712{col 78}{space 4}  -.25094{col 91}{space 3}  .171498
{txt}{space 26}ltradeopen {c |}{col 38}{res}{space 2} -.006564{col 50}{space 2} .0027378{col 61}{space 1}   -2.40{col 70}{space 3}0.017{col 78}{space 4}  -.01193{col 91}{space 3} -.001198
{txt}{space 28}llnmilex {c |}{col 38}{res}{space 2}  .368693{col 50}{space 2} .0634279{col 61}{space 1}    5.81{col 70}{space 3}0.000{col 78}{space 4} .2443766{col 91}{space 3} .4930094
{txt}{space 23}lagtheta_mean {c |}{col 38}{res}{space 2}  -.10908{col 50}{space 2} .1276682{col 61}{space 1}   -0.85{col 70}{space 3}0.393{col 78}{space 4}-.3593052{col 91}{space 3} .1411451
{txt}{space 27}1.coldwar {c |}{col 38}{res}{space 2}-.4418656{col 50}{space 2} .2111216{col 61}{space 1}   -2.09{col 70}{space 3}0.036{col 78}{space 4}-.8556564{col 91}{space 3}-.0280749
{txt}{space 21}yrssince_divert {c |}{col 38}{res}{space 2}-.4362141{col 50}{space 2} .0581651{col 61}{space 1}   -7.50{col 70}{space 3}0.000{col 78}{space 4}-.5502156{col 91}{space 3}-.3222125
{txt}{space 19}yrssince_divertsq {c |}{col 38}{res}{space 2} .0185701{col 50}{space 2} .0033293{col 61}{space 1}    5.58{col 70}{space 3}0.000{col 78}{space 4} .0120447{col 91}{space 3} .0250955
{txt}{space 16}yrssince_divertcubic {c |}{col 38}{res}{space 2}-.0002223{col 50}{space 2}   .00005{col 61}{space 1}   -4.45{col 70}{space 3}0.000{col 78}{space 4}-.0003202{col 91}{space 3}-.0001243
{txt}{space 31}_cons {c |}{col 38}{res}{space 2} -3.99824{col 50}{space 2} .9101168{col 61}{space 1}   -4.39{col 70}{space 3}0.000{col 78}{space 4}-5.782036{col 91}{space 3}-2.214444
{txt}{hline 37}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using TableA2, word replace alpha(0.001, 0.01, 0.05, 0.1) symbol(***,**,*, †) bdec(3) addtext(Countries, 137)
{txt}{stata `"shellout using `"TableA2.rtf"'"':TableA2.rtf}
{browse `"C:\Users\liour\My Drive\Diversionary sanctions\FPA R&R"' :dir}{com} : {txt}{stata `"seeout using "TableA2.txt""':seeout}

{com}. 
. margins, dydx(lbinonvio_campaign) at(lvdem_polyarchy =(0(0.1)0.93)) predict(outcome(1))
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}     2,985
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(diversion==1), predict(outcome(1))}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.lbinonvio_campaign}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{res}{txt}{hline 22}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 23}{c |}{col 35} Delta-method
{col 23}{c |}      dy/dx{col 35}   Std. Err.{col 47}      z{col 55}   P>|z|{col 63}     [95% Con{col 76}f. Interval]
{hline 22}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.lbinonvio_campaign  {txt}{c |}
{space 18}_at {c |}
{space 19}1  {c |}{col 23}{res}{space 2}-.0088935{col 35}{space 2} .0123878{col 46}{space 1}   -0.72{col 55}{space 3}0.473{col 63}{space 4}-.0331731{col 76}{space 3} .0153861
{txt}{space 19}2  {c |}{col 23}{res}{space 2} -.004483{col 35}{space 2} .0162665{col 46}{space 1}   -0.28{col 55}{space 3}0.783{col 63}{space 4}-.0363647{col 76}{space 3} .0273987
{txt}{space 19}3  {c |}{col 23}{res}{space 2} .0063224{col 35}{space 2} .0208117{col 46}{space 1}    0.30{col 55}{space 3}0.761{col 63}{space 4}-.0344679{col 76}{space 3} .0471126
{txt}{space 19}4  {c |}{col 23}{res}{space 2} .0272009{col 35}{space 2} .0262309{col 46}{space 1}    1.04{col 55}{space 3}0.300{col 63}{space 4}-.0242106{col 76}{space 3} .0786124
{txt}{space 19}5  {c |}{col 23}{res}{space 2} .0617178{col 35}{space 2} .0373919{col 46}{space 1}    1.65{col 55}{space 3}0.099{col 63}{space 4} -.011569{col 76}{space 3} .1350046
{txt}{space 19}6  {c |}{col 23}{res}{space 2} .1111382{col 35}{space 2} .0593263{col 46}{space 1}    1.87{col 55}{space 3}0.061{col 63}{space 4}-.0051392{col 76}{space 3} .2274155
{txt}{space 19}7  {c |}{col 23}{res}{space 2} .1715422{col 35}{space 2} .0877609{col 46}{space 1}    1.95{col 55}{space 3}0.051{col 63}{space 4} -.000466{col 76}{space 3} .3435504
{txt}{space 19}8  {c |}{col 23}{res}{space 2} .2361281{col 35}{space 2} .1172994{col 46}{space 1}    2.01{col 55}{space 3}0.044{col 63}{space 4} .0062256{col 76}{space 3} .4660307
{txt}{space 19}9  {c |}{col 23}{res}{space 2} .3017045{col 35}{space 2} .1501078{col 46}{space 1}    2.01{col 55}{space 3}0.044{col 63}{space 4} .0074986{col 76}{space 3} .5959104
{txt}{space 18}10  {c |}{col 23}{res}{space 2} .3681043{col 35}{space 2} .1851106{col 46}{space 1}    1.99{col 55}{space 3}0.047{col 63}{space 4} .0052942{col 76}{space 3} .7309145
{txt}{hline 22}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 87}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, level(95) recast(line) recastci(rline) ciopts(lpattern(dash) lcolor(black)) scheme(s2mono) yline(0, lpattern(line))  ///
> title("") plotopts(lcolor(black) plotregion(color(white)) graphregion(color(white)))  ///
> xtitle(Democracy, size(medium)) ytitle(Change in Probability of Sanction Imposition, size(medium)) yscale(titlegap(+2)) xscale(titlegap(+2)) ///
> addplot(hist loppseatshare if e(sample)==1, percent fcolor(none) lcolor(gray) xlabel(0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9) ///
> yaxis(2) ytitle(Percent of Sample, axis(2)) yscale(axis(2) alt)) legend(off) 

{text}{p 2 6 2}Variables that uniquely identify margins: lvdem_polyarchy{p_end}
{p 0 4 2}
{txt}(note:  named style
line not found in class
linepattern,  default attributes used)
{p_end}
{res}{txt}
{com}. graph export "Figure A2.png", replace           
{txt}(file Figure A2.png written in PNG format)

{com}.         
. margins, dydx(lbivio_campaign) at(lvdem_polyarchy =(0(0.1)0.9)) predict(outcome(1))
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}     2,985
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(diversion==1), predict(outcome(1))}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.lbivio_campaign}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{res}{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 20}{c |}{col 32} Delta-method
{col 20}{c |}      dy/dx{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.lbivio_campaign  {txt}{c |}
{space 15}_at {c |}
{space 16}1  {c |}{col 20}{res}{space 2}-.0222611{col 32}{space 2} .0115854{col 43}{space 1}   -1.92{col 52}{space 3}0.055{col 60}{space 4}-.0449681{col 73}{space 3} .0004458
{txt}{space 16}2  {c |}{col 20}{res}{space 2}-.0271212{col 32}{space 2} .0113958{col 43}{space 1}   -2.38{col 52}{space 3}0.017{col 60}{space 4}-.0494566{col 73}{space 3}-.0047859
{txt}{space 16}3  {c |}{col 20}{res}{space 2} -.032576{col 32}{space 2} .0114005{col 43}{space 1}   -2.86{col 52}{space 3}0.004{col 60}{space 4}-.0549205{col 73}{space 3}-.0102315
{txt}{space 16}4  {c |}{col 20}{res}{space 2}-.0380393{col 32}{space 2} .0124477{col 43}{space 1}   -3.06{col 52}{space 3}0.002{col 60}{space 4}-.0624364{col 73}{space 3}-.0136422
{txt}{space 16}5  {c |}{col 20}{res}{space 2}-.0420909{col 32}{space 2} .0150767{col 43}{space 1}   -2.79{col 52}{space 3}0.005{col 60}{space 4}-.0716407{col 73}{space 3}-.0125411
{txt}{space 16}6  {c |}{col 20}{res}{space 2}-.0427401{col 32}{space 2}    .0189{col 43}{space 1}   -2.26{col 52}{space 3}0.024{col 60}{space 4}-.0797835{col 73}{space 3}-.0056967
{txt}{space 16}7  {c |}{col 20}{res}{space 2}-.0385901{col 32}{space 2} .0239675{col 43}{space 1}   -1.61{col 52}{space 3}0.107{col 60}{space 4}-.0855657{col 73}{space 3} .0083854
{txt}{space 16}8  {c |}{col 20}{res}{space 2}-.0292584{col 32}{space 2} .0311011{col 43}{space 1}   -0.94{col 52}{space 3}0.347{col 60}{space 4}-.0902153{col 73}{space 3} .0316986
{txt}{space 16}9  {c |}{col 20}{res}{space 2}-.0145099{col 32}{space 2}  .041198{col 43}{space 1}   -0.35{col 52}{space 3}0.725{col 60}{space 4}-.0952564{col 73}{space 3} .0662367
{txt}{space 15}10  {c |}{col 20}{res}{space 2} .0058686{col 32}{space 2} .0545894{col 43}{space 1}    0.11{col 52}{space 3}0.914{col 60}{space 4}-.1011247{col 73}{space 3} .1128618
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 84}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, level(95) recast(line) recastci(rline) ciopts(lpattern(dash) lcolor(black)) scheme(s2mono) yline(0, lpattern(line))  ///
> title("") plotopts(lcolor(black) plotregion(color(white)) graphregion(color(white)))  ///
> xtitle(Democracy, size(medium)) ytitle(Change in Probability of Sanction Imposition, size(medium)) yscale(titlegap(+2)) xscale(titlegap(+2)) ///
> addplot(hist loppseatshare if e(sample)==1, percent fcolor(none) lcolor(gray) xlabel(0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9) ///
> yaxis(2) ytitle(Percent of Sample, axis(2)) yscale(axis(2) alt)) legend(off) 

{text}{p 2 6 2}Variables that uniquely identify margins: lvdem_polyarchy{p_end}
{p 0 4 2}
{txt}(note:  named style
line not found in class
linepattern,  default attributes used)
{p_end}
{res}{txt}
{com}. graph export "Figure A3.png", replace           
{txt}(file Figure A3.png written in PNG format)

{com}. 
. 
{txt}end of do-file

{com}. do "C:\Users\liour\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. mlogit diversion i.lbinonvio_campaign##c.lvdem_polyarchy i.lbivio_campaign##c.lvdem_polyarchy lgdpgr llninflation Flegelec Fexelec llngdppc ltradeopen llnmilex lagtheta_mean i.coldwar yrssince_divert yrssince_divertsq yrssince_divertcubic if year >1974 & year <2006, vce(cluster ccode)   

{txt}note: lvdem_polyarchy omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1868.2702}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1387.2242}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1312.5953}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1268.6094}  
Iteration 4:{space 3}log pseudolikelihood = {res:-1222.8205}  
Iteration 5:{space 3}log pseudolikelihood = {res:-1204.5723}  
Iteration 6:{space 3}log pseudolikelihood = {res:-1201.1093}  
Iteration 7:{space 3}log pseudolikelihood = {res:-1199.9548}  
Iteration 8:{space 3}log pseudolikelihood = {res:-1199.8838}  
Iteration 9:{space 3}log pseudolikelihood = {res:-1199.8833}  
Iteration 10:{space 2}log pseudolikelihood = {res:-1199.8833}  
{res}
{txt}Multinomial logistic regression{col 49}Number of obs{col 67}= {res}     3,054
{txt}{col 49}Wald chi2({res}34{txt}){col 67}= {res}    925.82
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-1199.8833{txt}{col 49}Pseudo R2{col 67}= {res}    0.3578

{txt}{ralign 102:(Std. Err. adjusted for {res:137} clusters in ccode)}
{hline 37}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 38}{c |}{col 50}    Robust
{col 1}                           diversion{col 38}{c |}      Coef.{col 50}   Std. Err.{col 62}      z{col 70}   P>|z|{col 78}     [95% Con{col 91}f. Interval]
{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0                                   {col 38}{txt}{c |}  (base outcome)
{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1                                    {txt}{c |}
{space 16}1.lbinonvio_campaign {c |}{col 38}{res}{space 2}-1.072194{col 50}{space 2} 1.222499{col 61}{space 1}   -0.88{col 70}{space 3}0.380{col 78}{space 4}-3.468248{col 91}{space 3}  1.32386
{txt}{space 21}lvdem_polyarchy {c |}{col 38}{res}{space 2} .6726125{col 50}{space 2} 1.428944{col 61}{space 1}    0.47{col 70}{space 3}0.638{col 78}{space 4}-2.128067{col 91}{space 3} 3.473292
{txt}{space 36} {c |}
lbinonvio_campaign#c.lvdem_polyarchy {c |}
{space 34}1  {c |}{col 38}{res}{space 2} 4.967202{col 50}{space 2} 2.802576{col 61}{space 1}    1.77{col 70}{space 3}0.076{col 78}{space 4}-.5257465{col 91}{space 3} 10.46015
{txt}{space 36} {c |}
{space 19}1.lbivio_campaign {c |}{col 38}{res}{space 2}-2.551307{col 50}{space 2} .9666612{col 61}{space 1}   -2.64{col 70}{space 3}0.008{col 78}{space 4}-4.445928{col 91}{space 3}-.6566861
{txt}{space 21}lvdem_polyarchy {c |}{col 38}{res}{space 2}        0{col 50}{txt}  (omitted)
{space 36} {c |}
{space 3}lbivio_campaign#c.lvdem_polyarchy {c |}
{space 34}1  {c |}{col 38}{res}{space 2} 3.276015{col 50}{space 2} 1.513955{col 61}{space 1}    2.16{col 70}{space 3}0.030{col 78}{space 4} .3087188{col 91}{space 3} 6.243312
{txt}{space 36} {c |}
{space 30}lgdpgr {c |}{col 38}{res}{space 2}-.0341423{col 50}{space 2} .0213472{col 61}{space 1}   -1.60{col 70}{space 3}0.110{col 78}{space 4}-.0759821{col 91}{space 3} .0076975
{txt}{space 24}llninflation {c |}{col 38}{res}{space 2} .2127661{col 50}{space 2} .1448849{col 61}{space 1}    1.47{col 70}{space 3}0.142{col 78}{space 4}-.0712031{col 91}{space 3} .4967353
{txt}{space 28}Flegelec {c |}{col 38}{res}{space 2}-.2920209{col 50}{space 2} .2261232{col 61}{space 1}   -1.29{col 70}{space 3}0.197{col 78}{space 4}-.7352142{col 91}{space 3} .1511723
{txt}{space 29}Fexelec {c |}{col 38}{res}{space 2}-.0239035{col 50}{space 2} .3454787{col 61}{space 1}   -0.07{col 70}{space 3}0.945{col 78}{space 4}-.7010293{col 91}{space 3} .6532223
{txt}{space 28}llngdppc {c |}{col 38}{res}{space 2}-.1494307{col 50}{space 2} .2522663{col 61}{space 1}   -0.59{col 70}{space 3}0.554{col 78}{space 4}-.6438634{col 91}{space 3} .3450021
{txt}{space 26}ltradeopen {c |}{col 38}{res}{space 2} .0043018{col 50}{space 2}  .004603{col 61}{space 1}    0.93{col 70}{space 3}0.350{col 78}{space 4}-.0047198{col 91}{space 3} .0133235
{txt}{space 28}llnmilex {c |}{col 38}{res}{space 2} .3411968{col 50}{space 2} .2143711{col 61}{space 1}    1.59{col 70}{space 3}0.111{col 78}{space 4} -.078963{col 91}{space 3} .7613565
{txt}{space 23}lagtheta_mean {c |}{col 38}{res}{space 2} -.046928{col 50}{space 2} .2212015{col 61}{space 1}   -0.21{col 70}{space 3}0.832{col 78}{space 4}-.4804749{col 91}{space 3}  .386619
{txt}{space 27}1.coldwar {c |}{col 38}{res}{space 2} .3811023{col 50}{space 2} .4475651{col 61}{space 1}    0.85{col 70}{space 3}0.394{col 78}{space 4}-.4961092{col 91}{space 3} 1.258314
{txt}{space 21}yrssince_divert {c |}{col 38}{res}{space 2}-.8706215{col 50}{space 2} .1645059{col 61}{space 1}   -5.29{col 70}{space 3}0.000{col 78}{space 4}-1.193047{col 91}{space 3}-.5481959
{txt}{space 19}yrssince_divertsq {c |}{col 38}{res}{space 2} .0464066{col 50}{space 2} .0102019{col 61}{space 1}    4.55{col 70}{space 3}0.000{col 78}{space 4} .0264113{col 91}{space 3}  .066402
{txt}{space 16}yrssince_divertcubic {c |}{col 38}{res}{space 2}-.0007002{col 50}{space 2} .0002001{col 61}{space 1}   -3.50{col 70}{space 3}0.000{col 78}{space 4}-.0010923{col 91}{space 3}-.0003081
{txt}{space 31}_cons {c |}{col 38}{res}{space 2}-5.612664{col 50}{space 2} 2.274796{col 61}{space 1}   -2.47{col 70}{space 3}0.014{col 78}{space 4}-10.07118{col 91}{space 3}-1.154147
{txt}{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}2                                    {txt}{c |}
{space 16}1.lbinonvio_campaign {c |}{col 38}{res}{space 2}-.3387083{col 50}{space 2} .7032475{col 61}{space 1}   -0.48{col 70}{space 3}0.630{col 78}{space 4}-1.717048{col 91}{space 3} 1.039632
{txt}{space 21}lvdem_polyarchy {c |}{col 38}{res}{space 2}-.7504667{col 50}{space 2} .4327096{col 61}{space 1}   -1.73{col 70}{space 3}0.083{col 78}{space 4}-1.598562{col 91}{space 3} .0976285
{txt}{space 36} {c |}
lbinonvio_campaign#c.lvdem_polyarchy {c |}
{space 34}1  {c |}{col 38}{res}{space 2}-.3703347{col 50}{space 2} 2.045717{col 61}{space 1}   -0.18{col 70}{space 3}0.856{col 78}{space 4}-4.379867{col 91}{space 3} 3.639197
{txt}{space 36} {c |}
{space 19}1.lbivio_campaign {c |}{col 38}{res}{space 2} .1066911{col 50}{space 2} .3183677{col 61}{space 1}    0.34{col 70}{space 3}0.738{col 78}{space 4}-.5172981{col 91}{space 3} .7306803
{txt}{space 21}lvdem_polyarchy {c |}{col 38}{res}{space 2}        0{col 50}{txt}  (omitted)
{space 36} {c |}
{space 3}lbivio_campaign#c.lvdem_polyarchy {c |}
{space 34}1  {c |}{col 38}{res}{space 2}  .545262{col 50}{space 2}  .534513{col 61}{space 1}    1.02{col 70}{space 3}0.308{col 78}{space 4}-.5023644{col 91}{space 3} 1.592888
{txt}{space 36} {c |}
{space 30}lgdpgr {c |}{col 38}{res}{space 2}-.0132681{col 50}{space 2} .0136748{col 61}{space 1}   -0.97{col 70}{space 3}0.332{col 78}{space 4}-.0400703{col 91}{space 3} .0135341
{txt}{space 24}llninflation {c |}{col 38}{res}{space 2}-.0939229{col 50}{space 2} .1053277{col 61}{space 1}   -0.89{col 70}{space 3}0.373{col 78}{space 4}-.3003615{col 91}{space 3} .1125156
{txt}{space 28}Flegelec {c |}{col 38}{res}{space 2}  .059114{col 50}{space 2} .1445921{col 61}{space 1}    0.41{col 70}{space 3}0.683{col 78}{space 4}-.2242813{col 91}{space 3} .3425093
{txt}{space 29}Fexelec {c |}{col 38}{res}{space 2}-.0757943{col 50}{space 2} .2136844{col 61}{space 1}   -0.35{col 70}{space 3}0.723{col 78}{space 4} -.494608{col 91}{space 3} .3430193
{txt}{space 28}llngdppc {c |}{col 38}{res}{space 2}-.0545897{col 50}{space 2} .1078641{col 61}{space 1}   -0.51{col 70}{space 3}0.613{col 78}{space 4}-.2659994{col 91}{space 3}   .15682
{txt}{space 26}ltradeopen {c |}{col 38}{res}{space 2}-.0057908{col 50}{space 2} .0026258{col 61}{space 1}   -2.21{col 70}{space 3}0.027{col 78}{space 4}-.0109373{col 91}{space 3}-.0006442
{txt}{space 28}llnmilex {c |}{col 38}{res}{space 2} .3730821{col 50}{space 2}  .066431{col 61}{space 1}    5.62{col 70}{space 3}0.000{col 78}{space 4} .2428798{col 91}{space 3} .5032845
{txt}{space 23}lagtheta_mean {c |}{col 38}{res}{space 2}-.1038526{col 50}{space 2} .1279503{col 61}{space 1}   -0.81{col 70}{space 3}0.417{col 78}{space 4}-.3546305{col 91}{space 3} .1469253
{txt}{space 27}1.coldwar {c |}{col 38}{res}{space 2}-.4209559{col 50}{space 2} .2194469{col 61}{space 1}   -1.92{col 70}{space 3}0.055{col 78}{space 4}-.8510638{col 91}{space 3} .0091521
{txt}{space 21}yrssince_divert {c |}{col 38}{res}{space 2}-.4297062{col 50}{space 2} .0577638{col 61}{space 1}   -7.44{col 70}{space 3}0.000{col 78}{space 4}-.5429212{col 91}{space 3}-.3164911
{txt}{space 19}yrssince_divertsq {c |}{col 38}{res}{space 2} .0181339{col 50}{space 2} .0032698{col 61}{space 1}    5.55{col 70}{space 3}0.000{col 78}{space 4} .0117252{col 91}{space 3} .0245426
{txt}{space 16}yrssince_divertcubic {c |}{col 38}{res}{space 2} -.000216{col 50}{space 2} .0000488{col 61}{space 1}   -4.42{col 70}{space 3}0.000{col 78}{space 4}-.0003116{col 91}{space 3}-.0001203
{txt}{space 31}_cons {c |}{col 38}{res}{space 2}-3.986382{col 50}{space 2} .9043877{col 61}{space 1}   -4.41{col 70}{space 3}0.000{col 78}{space 4} -5.75895{col 91}{space 3}-2.213815
{txt}{hline 37}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using TableA3, word replace alpha(0.001, 0.01, 0.05, 0.1) symbol(***,**,*, †) bdec(3) addtext(Countries, 137)
{txt}{stata `"shellout using `"TableA3.rtf"'"':TableA3.rtf}
{browse `"C:\Users\liour\My Drive\Diversionary sanctions\FPA R&R"' :dir}{com} : {txt}{stata `"seeout using "TableA3.txt""':seeout}

{com}. 
. margins, dydx(lbinonvio_campaign) at(lvdem_polyarchy =(0(0.1)0.93)) predict(outcome(1))
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}     3,054
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(diversion==1), predict(outcome(1))}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.lbinonvio_campaign}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{res}{txt}{hline 22}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 23}{c |}{col 35} Delta-method
{col 23}{c |}      dy/dx{col 35}   Std. Err.{col 47}      z{col 55}   P>|z|{col 63}     [95% Con{col 76}f. Interval]
{hline 22}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.lbinonvio_campaign  {txt}{c |}
{space 18}_at {c |}
{space 19}1  {c |}{col 23}{res}{space 2}-.0161797{col 35}{space 2} .0209948{col 46}{space 1}   -0.77{col 55}{space 3}0.441{col 63}{space 4}-.0573288{col 76}{space 3} .0249693
{txt}{space 19}2  {c |}{col 23}{res}{space 2} -.009555{col 35}{space 2} .0230102{col 46}{space 1}   -0.42{col 55}{space 3}0.678{col 63}{space 4}-.0546541{col 76}{space 3}  .035544
{txt}{space 19}3  {c |}{col 23}{res}{space 2} .0030459{col 35}{space 2} .0258725{col 46}{space 1}    0.12{col 55}{space 3}0.906{col 63}{space 4}-.0476634{col 76}{space 3} .0537551
{txt}{space 19}4  {c |}{col 23}{res}{space 2} .0242157{col 35}{space 2} .0295174{col 46}{space 1}    0.82{col 55}{space 3}0.412{col 63}{space 4}-.0336373{col 76}{space 3} .0820687
{txt}{space 19}5  {c |}{col 23}{res}{space 2} .0562079{col 35}{space 2} .0380122{col 46}{space 1}    1.48{col 55}{space 3}0.139{col 63}{space 4}-.0182947{col 76}{space 3} .1307104
{txt}{space 19}6  {c |}{col 23}{res}{space 2} .0995294{col 35}{space 2} .0563867{col 46}{space 1}    1.77{col 55}{space 3}0.078{col 63}{space 4}-.0109865{col 76}{space 3} .2100453
{txt}{space 19}7  {c |}{col 23}{res}{space 2} .1513306{col 35}{space 2} .0815407{col 46}{space 1}    1.86{col 55}{space 3}0.063{col 63}{space 4}-.0084863{col 76}{space 3} .3111476
{txt}{space 19}8  {c |}{col 23}{res}{space 2} .2065292{col 35}{space 2} .1076916{col 46}{space 1}    1.92{col 55}{space 3}0.055{col 63}{space 4}-.0045424{col 76}{space 3} .4176008
{txt}{space 19}9  {c |}{col 23}{res}{space 2} .2622188{col 35}{space 2} .1361253{col 46}{space 1}    1.93{col 55}{space 3}0.054{col 63}{space 4}-.0045819{col 76}{space 3} .5290194
{txt}{space 18}10  {c |}{col 23}{res}{space 2} .3191596{col 35}{space 2} .1709319{col 46}{space 1}    1.87{col 55}{space 3}0.062{col 63}{space 4}-.0158608{col 76}{space 3}   .65418
{txt}{hline 22}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 87}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, level(95) recast(line) recastci(rline) ciopts(lpattern(dash) lcolor(black)) scheme(s2mono) yline(0, lpattern(line))  ///
> title("") plotopts(lcolor(black) plotregion(color(white)) graphregion(color(white)))  ///
> xtitle(Democracy, size(medium)) ytitle(Change in Probability of Sanction Imposition, size(medium)) yscale(titlegap(+2)) xscale(titlegap(+2)) ///
> addplot(hist loppseatshare if e(sample)==1, percent fcolor(none) lcolor(gray) xlabel(0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9) ///
> yaxis(2) ytitle(Percent of Sample, axis(2)) yscale(axis(2) alt)) legend(off) 

{text}{p 2 6 2}Variables that uniquely identify margins: lvdem_polyarchy{p_end}
{p 0 4 2}
{txt}(note:  named style
line not found in class
linepattern,  default attributes used)
{p_end}
{res}{txt}
{com}. graph export "Figure A4.png", replace           
{txt}(file Figure A4.png written in PNG format)

{com}. 
. margins, dydx(lbivio_campaign) at(lvdem_polyarchy =(0(0.1)0.9)) predict(outcome(1))
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}     3,054
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(diversion==1), predict(outcome(1))}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.lbivio_campaign}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:lvdem_poly~y}{space 4}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{res}{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 20}{c |}{col 32} Delta-method
{col 20}{c |}      dy/dx{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.lbivio_campaign  {txt}{c |}
{space 15}_at {c |}
{space 16}1  {c |}{col 20}{res}{space 2}-.0360839{col 32}{space 2} .0223033{col 43}{space 1}   -1.62{col 52}{space 3}0.106{col 60}{space 4}-.0797976{col 73}{space 3} .0076298
{txt}{space 16}2  {c |}{col 20}{res}{space 2}-.0388426{col 32}{space 2} .0195138{col 43}{space 1}   -1.99{col 52}{space 3}0.047{col 60}{space 4} -.077089{col 73}{space 3}-.0005962
{txt}{space 16}3  {c |}{col 20}{res}{space 2}-.0414117{col 32}{space 2} .0168856{col 43}{space 1}   -2.45{col 52}{space 3}0.014{col 60}{space 4}-.0745068{col 73}{space 3}-.0083166
{txt}{space 16}4  {c |}{col 20}{res}{space 2}-.0432744{col 32}{space 2} .0153727{col 43}{space 1}   -2.82{col 52}{space 3}0.005{col 60}{space 4}-.0734044{col 73}{space 3}-.0131443
{txt}{space 16}5  {c |}{col 20}{res}{space 2}-.0434161{col 32}{space 2} .0160188{col 43}{space 1}   -2.71{col 52}{space 3}0.007{col 60}{space 4}-.0748123{col 73}{space 3}-.0120198
{txt}{space 16}6  {c |}{col 20}{res}{space 2}-.0405079{col 32}{space 2} .0186737{col 43}{space 1}   -2.17{col 52}{space 3}0.030{col 60}{space 4}-.0771076{col 73}{space 3}-.0039082
{txt}{space 16}7  {c |}{col 20}{res}{space 2}-.0337029{col 32}{space 2} .0227541{col 43}{space 1}   -1.48{col 52}{space 3}0.139{col 60}{space 4}   -.0783{col 73}{space 3} .0108942
{txt}{space 16}8  {c |}{col 20}{res}{space 2}-.0230089{col 32}{space 2} .0284088{col 43}{space 1}   -0.81{col 52}{space 3}0.418{col 60}{space 4} -.078689{col 73}{space 3} .0326713
{txt}{space 16}9  {c |}{col 20}{res}{space 2}-.0084451{col 32}{space 2} .0362312{col 43}{space 1}   -0.23{col 52}{space 3}0.816{col 60}{space 4}-.0794569{col 73}{space 3} .0625667
{txt}{space 15}10  {c |}{col 20}{res}{space 2} .0103176{col 32}{space 2} .0469429{col 43}{space 1}    0.22{col 52}{space 3}0.826{col 60}{space 4}-.0816887{col 73}{space 3} .1023239
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 84}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, level(95) recast(line) recastci(rline) ciopts(lpattern(dash) lcolor(black)) scheme(s2mono) yline(0, lpattern(line))  ///
> title("") plotopts(lcolor(black) plotregion(color(white)) graphregion(color(white)))  ///
> xtitle(Democracy, size(medium)) ytitle(Change in Probability of Sanction Imposition, size(medium)) yscale(titlegap(+2)) xscale(titlegap(+2)) ///
> addplot(hist loppseatshare if e(sample)==1, percent fcolor(none) lcolor(gray) xlabel(0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9) ///
> yaxis(2) ytitle(Percent of Sample, axis(2)) yscale(axis(2) alt)) legend(off) 

{text}{p 2 6 2}Variables that uniquely identify margins: lvdem_polyarchy{p_end}
{p 0 4 2}
{txt}(note:  named style
line not found in class
linepattern,  default attributes used)
{p_end}
{res}{txt}
{com}. graph export "Figure A5.png", replace           
{txt}(file Figure A5.png written in PNG format)

{com}. 
. 
{txt}end of do-file

{com}. do "C:\Users\liour\AppData\Local\Temp\STD00000000.tmp"
{txt}
{com}. clear all
{txt}
{com}. use "DiversionarySanctions_GSDB.dta", clear 
{txt}
{com}. mlogit diversion_gsdb i.lbinonvio_campaign##c.loppseatshare i.lbivio_campaign##c.loppseatshare lgdpgr llninflation Flegelec Fexelec llngdppc ltradeopen llnmilex lvdem_polyarchy lagtheta_mean i.coldwar yrssince_divertgsdb yrssince_divertsqgsdb yrssince_divertcubicgsdb if year >1974 & year <2014, vce(cluster ccode)              

{txt}note: loppseatshare omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-2963.1395}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1957.4613}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1679.9541}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1628.9171}  
Iteration 4:{space 3}log pseudolikelihood = {res:-1617.7925}  
Iteration 5:{space 3}log pseudolikelihood = {res:-1611.0937}  
Iteration 6:{space 3}log pseudolikelihood = {res: -1606.802}  
Iteration 7:{space 3}log pseudolikelihood = {res:-1606.0994}  
Iteration 8:{space 3}log pseudolikelihood = {res: -1606.064}  
Iteration 9:{space 3}log pseudolikelihood = {res:-1606.0638}  
{res}
{txt}Multinomial logistic regression{col 49}Number of obs{col 67}= {res}     4,076
{txt}{col 49}Wald chi2({res}36{txt}){col 67}= {res}    788.61
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-1606.0638{txt}{col 49}Pseudo R2{col 67}= {res}    0.4580

{txt}{ralign 100:(Std. Err. adjusted for {res:151} clusters in ccode)}
{hline 35}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 36}{c |}{col 48}    Robust
{col 1}                    diversion_gsdb{col 36}{c |}      Coef.{col 48}   Std. Err.{col 60}      z{col 68}   P>|z|{col 76}     [95% Con{col 89}f. Interval]
{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0                                 {col 36}{txt}{c |}  (base outcome)
{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1                                  {txt}{c |}
{space 14}1.lbinonvio_campaign {c |}{col 36}{res}{space 2} .1599442{col 48}{space 2} .7057608{col 59}{space 1}    0.23{col 68}{space 3}0.821{col 76}{space 4}-1.223322{col 89}{space 3}  1.54321
{txt}{space 21}loppseatshare {c |}{col 36}{res}{space 2}-1.356464{col 48}{space 2} .9266342{col 59}{space 1}   -1.46{col 68}{space 3}0.143{col 76}{space 4}-3.172634{col 89}{space 3} .4597056
{txt}{space 34} {c |}
lbinonvio_campaign#c.loppseatshare {c |}
{space 32}1  {c |}{col 36}{res}{space 2}-.8552974{col 48}{space 2} 1.373614{col 59}{space 1}   -0.62{col 68}{space 3}0.534{col 76}{space 4}-3.547532{col 89}{space 3} 1.836937
{txt}{space 34} {c |}
{space 17}1.lbivio_campaign {c |}{col 36}{res}{space 2}-.8873429{col 48}{space 2} .5499432{col 59}{space 1}   -1.61{col 68}{space 3}0.107{col 76}{space 4}-1.965212{col 89}{space 3} .1905259
{txt}{space 21}loppseatshare {c |}{col 36}{res}{space 2}        0{col 48}{txt}  (omitted)
{space 34} {c |}
{space 3}lbivio_campaign#c.loppseatshare {c |}
{space 32}1  {c |}{col 36}{res}{space 2} .7760255{col 48}{space 2} 1.557872{col 59}{space 1}    0.50{col 68}{space 3}0.618{col 76}{space 4}-2.277348{col 89}{space 3} 3.829399
{txt}{space 34} {c |}
{space 28}lgdpgr {c |}{col 36}{res}{space 2} .0159882{col 48}{space 2} .0177147{col 59}{space 1}    0.90{col 68}{space 3}0.367{col 76}{space 4} -.018732{col 89}{space 3} .0507084
{txt}{space 22}llninflation {c |}{col 36}{res}{space 2} .2852235{col 48}{space 2} .2088155{col 59}{space 1}    1.37{col 68}{space 3}0.172{col 76}{space 4}-.1240473{col 89}{space 3} .6944943
{txt}{space 26}Flegelec {c |}{col 36}{res}{space 2}-.1032252{col 48}{space 2} .1378806{col 59}{space 1}   -0.75{col 68}{space 3}0.454{col 76}{space 4}-.3734662{col 89}{space 3} .1670159
{txt}{space 27}Fexelec {c |}{col 36}{res}{space 2}-.3990079{col 48}{space 2}  .338208{col 59}{space 1}   -1.18{col 68}{space 3}0.238{col 76}{space 4}-1.061883{col 89}{space 3} .2638676
{txt}{space 26}llngdppc {c |}{col 36}{res}{space 2} .1586165{col 48}{space 2} .2684237{col 59}{space 1}    0.59{col 68}{space 3}0.555{col 76}{space 4}-.3674843{col 89}{space 3} .6847173
{txt}{space 24}ltradeopen {c |}{col 36}{res}{space 2}-.0010084{col 48}{space 2} .0056794{col 59}{space 1}   -0.18{col 68}{space 3}0.859{col 76}{space 4}-.0121398{col 89}{space 3} .0101229
{txt}{space 26}llnmilex {c |}{col 36}{res}{space 2} .1365318{col 48}{space 2} .1349549{col 59}{space 1}    1.01{col 68}{space 3}0.312{col 76}{space 4} -.127975{col 89}{space 3} .4010386
{txt}{space 19}lvdem_polyarchy {c |}{col 36}{res}{space 2} 2.823874{col 48}{space 2}  1.21723{col 59}{space 1}    2.32{col 68}{space 3}0.020{col 76}{space 4} .4381468{col 89}{space 3} 5.209601
{txt}{space 21}lagtheta_mean {c |}{col 36}{res}{space 2} .1035535{col 48}{space 2} .1873488{col 59}{space 1}    0.55{col 68}{space 3}0.580{col 76}{space 4}-.2636433{col 89}{space 3} .4707504
{txt}{space 25}1.coldwar {c |}{col 36}{res}{space 2} .9953107{col 48}{space 2} .3349153{col 59}{space 1}    2.97{col 68}{space 3}0.003{col 76}{space 4} .3388888{col 89}{space 3} 1.651733
{txt}{space 15}yrssince_divertgsdb {c |}{col 36}{res}{space 2}-1.547379{col 48}{space 2} .2344296{col 59}{space 1}   -6.60{col 68}{space 3}0.000{col 76}{space 4}-2.006853{col 89}{space 3}-1.087906
{txt}{space 13}yrssince_divertsqgsdb {c |}{col 36}{res}{space 2} .0897247{col 48}{space 2} .0162779{col 59}{space 1}    5.51{col 68}{space 3}0.000{col 76}{space 4} .0578207{col 89}{space 3} .1216287
{txt}{space 10}yrssince_divertcubicgsdb {c |}{col 36}{res}{space 2}-.0014428{col 48}{space 2} .0003222{col 59}{space 1}   -4.48{col 68}{space 3}0.000{col 76}{space 4}-.0020743{col 89}{space 3}-.0008112
{txt}{space 29}_cons {c |}{col 36}{res}{space 2}-5.356076{col 48}{space 2} 1.634897{col 59}{space 1}   -3.28{col 68}{space 3}0.001{col 76}{space 4}-8.560415{col 89}{space 3}-2.151738
{txt}{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}2                                  {txt}{c |}
{space 14}1.lbinonvio_campaign {c |}{col 36}{res}{space 2} .4282804{col 48}{space 2} .3425669{col 59}{space 1}    1.25{col 68}{space 3}0.211{col 76}{space 4}-.2431385{col 89}{space 3} 1.099699
{txt}{space 21}loppseatshare {c |}{col 36}{res}{space 2} .9267988{col 48}{space 2} .5658801{col 59}{space 1}    1.64{col 68}{space 3}0.101{col 76}{space 4}-.1823058{col 89}{space 3} 2.035903
{txt}{space 34} {c |}
lbinonvio_campaign#c.loppseatshare {c |}
{space 32}1  {c |}{col 36}{res}{space 2}-2.698906{col 48}{space 2} 1.199458{col 59}{space 1}   -2.25{col 68}{space 3}0.024{col 76}{space 4}-5.049801{col 89}{space 3}-.3480113
{txt}{space 34} {c |}
{space 17}1.lbivio_campaign {c |}{col 36}{res}{space 2} .6498077{col 48}{space 2} .3090795{col 59}{space 1}    2.10{col 68}{space 3}0.036{col 76}{space 4} .0440231{col 89}{space 3} 1.255592
{txt}{space 21}loppseatshare {c |}{col 36}{res}{space 2}        0{col 48}{txt}  (omitted)
{space 34} {c |}
{space 3}lbivio_campaign#c.loppseatshare {c |}
{space 32}1  {c |}{col 36}{res}{space 2}-1.115241{col 48}{space 2} .7166215{col 59}{space 1}   -1.56{col 68}{space 3}0.120{col 76}{space 4}-2.519793{col 89}{space 3} .2893119
{txt}{space 34} {c |}
{space 28}lgdpgr {c |}{col 36}{res}{space 2}-.0086333{col 48}{space 2} .0129159{col 59}{space 1}   -0.67{col 68}{space 3}0.504{col 76}{space 4}-.0339481{col 89}{space 3} .0166814
{txt}{space 22}llninflation {c |}{col 36}{res}{space 2}-.1500617{col 48}{space 2} .1263579{col 59}{space 1}   -1.19{col 68}{space 3}0.235{col 76}{space 4}-.3977186{col 89}{space 3} .0975953
{txt}{space 26}Flegelec {c |}{col 36}{res}{space 2}  .033743{col 48}{space 2} .1236937{col 59}{space 1}    0.27{col 68}{space 3}0.785{col 76}{space 4}-.2086921{col 89}{space 3} .2761782
{txt}{space 27}Fexelec {c |}{col 36}{res}{space 2}-.0941497{col 48}{space 2} .1960554{col 59}{space 1}   -0.48{col 68}{space 3}0.631{col 76}{space 4}-.4784112{col 89}{space 3} .2901119
{txt}{space 26}llngdppc {c |}{col 36}{res}{space 2}-.0559229{col 48}{space 2}   .11279{col 59}{space 1}   -0.50{col 68}{space 3}0.620{col 76}{space 4}-.2769872{col 89}{space 3} .1651414
{txt}{space 24}ltradeopen {c |}{col 36}{res}{space 2}-.0066433{col 48}{space 2} .0023816{col 59}{space 1}   -2.79{col 68}{space 3}0.005{col 76}{space 4}-.0113112{col 89}{space 3}-.0019754
{txt}{space 26}llnmilex {c |}{col 36}{res}{space 2} .4249342{col 48}{space 2}  .072804{col 59}{space 1}    5.84{col 68}{space 3}0.000{col 76}{space 4} .2822409{col 89}{space 3} .5676275
{txt}{space 19}lvdem_polyarchy {c |}{col 36}{res}{space 2}-.5264409{col 48}{space 2} .5721843{col 59}{space 1}   -0.92{col 68}{space 3}0.358{col 76}{space 4}-1.647901{col 89}{space 3} .5950197
{txt}{space 21}lagtheta_mean {c |}{col 36}{res}{space 2}-.1127775{col 48}{space 2} .1459898{col 59}{space 1}   -0.77{col 68}{space 3}0.440{col 76}{space 4}-.3989123{col 89}{space 3} .1733572
{txt}{space 25}1.coldwar {c |}{col 36}{res}{space 2}   -.2831{col 48}{space 2} .2040387{col 59}{space 1}   -1.39{col 68}{space 3}0.165{col 76}{space 4}-.6830085{col 89}{space 3} .1168086
{txt}{space 15}yrssince_divertgsdb {c |}{col 36}{res}{space 2}-.4272366{col 48}{space 2} .0493036{col 59}{space 1}   -8.67{col 68}{space 3}0.000{col 76}{space 4}-.5238699{col 89}{space 3}-.3306033
{txt}{space 13}yrssince_divertsqgsdb {c |}{col 36}{res}{space 2} .0179641{col 48}{space 2} .0028619{col 59}{space 1}    6.28{col 68}{space 3}0.000{col 76}{space 4}  .012355{col 89}{space 3} .0235733
{txt}{space 10}yrssince_divertcubicgsdb {c |}{col 36}{res}{space 2}-.0002093{col 48}{space 2} .0000433{col 59}{space 1}   -4.83{col 68}{space 3}0.000{col 76}{space 4}-.0002942{col 89}{space 3}-.0001244
{txt}{space 29}_cons {c |}{col 36}{res}{space 2}-4.886413{col 48}{space 2} 1.119349{col 59}{space 1}   -4.37{col 68}{space 3}0.000{col 76}{space 4}-7.080297{col 89}{space 3} -2.69253
{txt}{hline 35}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 2}Note: 5 observations completely determined.{txt}  Standard errors questionable.{p_end}

{com}. outreg2 using TableA4, word replace alpha(0.001, 0.01, 0.05, 0.1) symbol(***,**,*, †) bdec(3) addtext(Countries, 151)
{txt}{stata `"shellout using `"TableA4.rtf"'"':TableA4.rtf}
{browse `"C:\Users\liour\My Drive\Diversionary sanctions\FPA R&R"' :dir}{com} : {txt}{stata `"seeout using "TableA4.txt""':seeout}

{com}. 
. 
. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\liour\My Drive\Diversionary sanctions\FPA R&R\DiversionarySanctions.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}29 Jul 2024, 16:39:44
{txt}{.-}
{smcl}
{txt}{sf}{ul off}